/// msgId : "21"
/// roomJid : "0"
/// type : "5"
/// url : "21"

class CollectModel {
  String msgId;
  String roomJid;
  String type;
  String url;
  String msg;
  String fileName; // 文件名称
  double fileSize; // 时长
  int fileLength; //  时长
  CollectModel(
      {this.msgId,
      this.roomJid,
      this.type,
      this.url,
      this.msg,
      this.fileName,
      this.fileLength,
      this.fileSize});

  CollectModel.fromJson(dynamic json) {
    msgId = json["msgId"];
    roomJid = json["roomJid"];
    type = json["type"];
    url = json["url"];
    msg = json['msg'];
    fileLength = json['fileLength'];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["msgId"] = msgId;
    map["roomJid"] = roomJid;
    map["type"] = type;
    map["url"] = url;
    map["msg"] = msg;
    map['fileLength'] = fileLength;
    return map;
  }
}
